package com.financing.platform.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.financing.platform.dao.IProjectRiskDao;
import com.financing.platform.dto.ProjectRiskDTO;
import com.financing.platform.service.IProjectRiskService;

@Service("projectRiskServiceImpl")
public class ProjectRiskServiceImpl extends BaseServiceImpl implements
		IProjectRiskService {

	@Autowired
	IProjectRiskDao projectRiskDaoImpl;
	
	public Integer addProjectRisk(ProjectRiskDTO projectRiskDTO) {
		return projectRiskDaoImpl.addProjectRisk(projectRiskDTO);
	}

	public List<ProjectRiskDTO> queryProjectRisk(ProjectRiskDTO projectRiskDTO) {
		return projectRiskDaoImpl.queryProjectList(projectRiskDTO);
	}

	public int deleteProjectRisk(int projectId) throws SQLException {
		return projectRiskDaoImpl.deleteProjectRisk(projectId);
	}

}
